package com.service.impl;

import java.io.Serializable;
import java.util.List;

import com.dao.AreaIpDao;
import com.enetiy.Areaip;
import com.enetiy.Areaitemip;
import com.enetiy.Push;
import com.service.AreaIpService;

public class AreaIpServiceImpl implements AreaIpService {
	public AreaIpDao areaIpDao;
	@Override
	public Serializable insertAreaIp(Areaip areaip) throws Exception {
		return areaIpDao.insertAreaIp(areaip);
	}
	@Override
	public Areaip selectAreaIp(String publicIp) throws Exception {
		return areaIpDao.selectAreaIp(publicIp);
	}
	public void setAreaIpDao(AreaIpDao areaIpDao) {
		this.areaIpDao = areaIpDao;
	}
	@Override
	public Areaip selectAreaip(int areaid) throws Exception {
		return this.areaIpDao.selectAreaip(areaid);
	}
	@Override
	public void updateAreaIp(Areaip areaip) throws Exception {
		this.areaIpDao.updateAreaIp(areaip);
	}
	@Override
	public Serializable insertAreaitemip(Areaitemip areaitemip)
			throws Exception {
		return areaIpDao.insertAreaitemip(areaitemip);
	}
	@Override
	public void updateAreaitemip(Areaitemip areaitemip) throws Exception {
		areaIpDao.updateAreaitemip(areaitemip);
	}
	@Override
	public Areaitemip selectAreaitemip(String keyword, int areaid)
			throws Exception {
		return areaIpDao.selectAreaitemip(keyword, areaid);
	}
	@Override
	public List<Areaitemip> selectAreaitemipList() throws Exception {
		return areaIpDao.selectAreaitemipList();
	}
	@Override
	public List<Areaip> selectAreaipList() throws Exception {
		return areaIpDao.selectAreaipList();
	}
	@Override
	public List<Push> selectPushList(String use, int type) throws Exception {
		return areaIpDao.selectPushList(use, type);
	}
}
